package com.linseven.demo.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 登录类
 *
 * @author YQ17749
 */
@RestController
@RequestMapping("/demo")
public class DemoController {
    /**
     * 登陆
     *
     * @return
     */
    @PostMapping("/login")
    public String login() {
        return "登入成功";
    }

    /**
     * getUser
     *
     * @return
     */
    @GetMapping("/getUser")
    public String getUser() {
        return "赵子龙";
    }

}
